package com.tf.temper.service.impl;

import com.tf.temper.dao.UserinfoDao;
import com.tf.temper.entity.UserinfoEntity;
import com.tf.temper.service.UserinfoService;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;


@Service("userinfoService")
public class UserinofServiceImpl extends ServiceImpl<UserinfoDao, UserinfoEntity> implements UserinfoService<UserinfoEntity>
{
    public PageUtils<UserinfoEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<UserinfoEntity> ew = new EntityWrapperHandle<UserinfoEntity>(params);
        Page<UserinfoEntity> page = this.selectPage(new Query<UserinfoEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<UserinfoEntity>(page);
    }

    public List<UserinfoEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
